home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xa;
-
- import com.extensibility.app.DialogFactory;
- import com.extensibility.xml.AttributeDeclaration;
- import com.extensibility.xml.ParserException;
- import javax.swing.JFrame;
-
- public class ElementTable$ElemAttrListCellDialog extends AttrListCellDialog {
- // $FF: synthetic field
- final ElementTable this$0;
- int row;
- int column;
-
- public ElementTable$ElemAttrListCellDialog(ElementTable var1, JFrame var2, SchemaDoc var3, AttrListQlicker var4, AttributeDeclaration.Owner var5, String var6) {
- super(var2, var3, var4, var5, false, var6);
- this.this$0 = var1;
- }
-
- void setTableInfo(int var1, int var2) {
- this.row = var1;
- this.column = var2;
- }
-
- protected void doApply() {
- try {
- ((CellDialog)this).getSchemaDoc().checkAttrList(((CellDialog)this).getText());
- this.this$0.getModel().setValueAt(((CellDialog)this).getText(), this.row, this.column);
- super.doApply();
- } catch (ParserException var2) {
- DialogFactory.showValidation(this, var2.getMessage(), false);
- }
-
- }
-
- protected boolean doSave() {
- try {
- ((CellDialog)this).getSchemaDoc().checkAttrList(((CellDialog)this).getText());
- this.this$0.getModel().setValueAt(((CellDialog)this).getText(), this.row, this.column);
- if (this.this$0.getCellEditor() instanceof AttrListQlicker) {
- ((AttrListQlicker)this.this$0.getCellEditor()).setText(((CellDialog)this).getText());
- }
-
- boolean var1 = true;
- return var1;
- } catch (ParserException var3) {
- DialogFactory.showValidation(this, var3.getMessage(), false);
- boolean var2 = false;
- return var2;
- }
- }
- }
-